package com.wangxiang.shop.order.data;

import com.wangxiang.common.utils.R;
import com.wangxiang.shop.order.service.MemberOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("order/data")
public class DataController {
    @Autowired
    private MemberOrderService memberOrderService;
    @RequestMapping("numInfo")
    public R numInfo(){
        HashMap<String, Integer> map = memberOrderService.numInfo();
        return R.ok().put("map",map);

    }
}
